package com.lostandfound.service.admin.impl;

import com.lostandfound.mapper.admin.RegisterMapper;
import com.lostandfound.pojo.User;
import com.lostandfound.service.admin.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {

    @Autowired
    private RegisterMapper registerMapper;

    @Override
    public User findByUsername(String userName) {
        return registerMapper.findByUsername(userName);
    }

    @Override
    public void register(User user) {
        registerMapper.register(user);
    }
}
